<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:sec="http://www.springframework.org/security/tags"
	xmlns:p="http://primefaces.org/ui">

	<h:form class="form-horizontal" method='POST'>
		<div id="accountBox" class="modal hide fade" tabindex="-1"
			role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"
					aria-hidden="true">×</button>
				<h3 id="myModalLabel">Modification de compte</h3>
			</div>
			<div class="modal-body">
				<div class="control-group">
					<label class="control-label" for="input_nickname">Pseudo</label>
					<div class="controls">
						<h:inputText value="#{C_LOGGED_AUTHOR.loggedAuthor.nickName}"
							id="input_nickname" name="input_nickname" placeholder="Pseudo" readonly="true"/>
					</div>
					<br /> <label class="control-label" for="input_mail">Mail</label>
					<div class="controls">
						<h:inputText value="#{C_LOGGED_AUTHOR.loggedAuthor.mail}"
							id="input_mail" name="input_mail" placeholder="Mail" readonly="true"/>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="input_firstName">Prénom</label>
					<div class="controls">
						<h:inputText value="#{C_LOGGED_AUTHOR.loggedAuthor.firstName}"
							id="input_firstName" name="input_firstName" placeholder="Prénom" />
					</div>
					<br /> <label class="control-label" for="input_lastName">Nom</label>
					<div class="controls">
						<h:inputText value="#{C_LOGGED_AUTHOR.loggedAuthor.lastName}"
							id="input_lastName" name="input_lastName" placeholder="Nom" />
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="input_password1">Nouveau
						Mot de passe</label>
					<div class="controls">
						<h:inputSecret value="#{C_AUTHOR.password1}" id="input_password1"
							name="input_password1" placeholder="Mot de passe" />
					</div>
					<br /> <label class="control-label" for="input_password2">Vérification</label>
					<div class="controls">
						<h:inputSecret value="#{C_AUTHOR.password2}" id="input_password2"
							name="input_password2" placeholder="Vérification du Mot de passe" />
					</div>
				</div>

			</div>
			<div class="modal-footer">
				<h:commandButton type="submit" styleClass="btn btn-primary"
					value="Modifier" actionListener="#{C_AUTHOR.update}">
				</h:commandButton>
				<button class="btn" data-dismiss="modal" aria-hidden="true">Annuler</button>
			</div>
		</div>
	</h:form>
</ui:composition>
